package com.supermarket.business.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.supermarket.business.domain.SupermarketCashier;
import com.supermarket.business.vo.SupermarketCashierVO;

import java.util.List;

/**
 * 收银员Service接口
 * 
 * @author ruoyi
 * @date 2025-07-21
 */
public interface ISupermarketCashierService extends IService<SupermarketCashier>
{
    /**
     * 查询收银员
     * 
     * @param cashierId 收银员主键
     * @return 收银员
     */
    public SupermarketCashier selectSysCashierByCashierId(Long cashierId);

    /**
     * 查询收银员列表
     * 
     * @param supermarketCashier 收银员
     * @return 收银员集合
     */
    public List<SupermarketCashier> selectSysCashierList(SupermarketCashier supermarketCashier);

    /**
     * 新增收银员
     * 
     * @param supermarketCashier 收银员
     * @return 结果
     */
    public int insertSysCashier(SupermarketCashier supermarketCashier);

    /**
     * 修改收银员
     * 
     * @param supermarketCashier 收银员
     * @return 结果
     */
    public int updateSysCashier(SupermarketCashier supermarketCashier);

    /**
     * 批量删除收银员
     * 
     * @param cashierIds 需要删除的收银员主键集合
     * @return 结果
     */
    public int deleteSysCashierByCashierIds(Long[] cashierIds);

    /**
     * 删除收银员信息
     * 
     * @param cashierId 收银员主键
     * @return 结果
     */
    public int deleteSysCashierByCashierId(Long cashierId);

    /**
     * 获取收银员VO列表
     * @param supermarketCashier
     * @return
     */
    List<SupermarketCashierVO> selectSysCashierListVO(SupermarketCashier supermarketCashier);

    /**
     * 获取收银员VO详细信息
     * @param cashierId
     * @return
     */
    SupermarketCashierVO selectSysCashierVOByCashierId(Long cashierId);

    /**
     * 获取当前帐号的id
     * @return
     */
    String getNowSysId();
}
